package com.betterjr.modules.accountSupervision.job;

import com.betterjr.modules.accountSupervision.service.ScfWarnService;
import com.dangdang.ddframe.job.api.JobExecutionMultipleShardingContext;
import com.dangdang.ddframe.job.plugin.job.type.simple.AbstractSimpleElasticJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ScfAccountDelJob extends AbstractSimpleElasticJob {
    private final static Logger logger = LoggerFactory.getLogger(ScfAccountBalJob.class);
    @Autowired
    private ScfWarnService scfWarnService;

    @Override
    public void process(JobExecutionMultipleShardingContext shardingContext) {
        logger.info("定时扫描明细开始！");
        scfWarnService.aotoDtl();
        logger.info("定时扫描明细结束！");

    }
}
